//
//  SettingNormalCell.m
//  wanzhaoIM
//
//  Created by liuyuantao on 15/5/4.
//  Copyright (c) 2015年 liuyuantao. All rights reserved.
//

#import "SettingNormalCell.h"

@implementation SettingNormalCell

- (void)awakeFromNib
{
    // Initialization code
    
//    _seperatorLine.frame = CGRectMake(15, self.frame.size.height-0.5f, self.frame.size.width-15, 0.5f);


}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)layoutSubviews
{
    [super layoutSubviews];

    _icon.frame = CGRectMake(15.0f, 0, 33.0f, 33.0f);
    CGPoint viewCenter = _icon.center;
    viewCenter.y = self.height / 2.0f;
    _icon.center = viewCenter;
    
    _titleLabel.frame = CGRectMake(CGRectGetMaxX(_icon.frame) + 10.0f, 0, 150, self.height);
    viewCenter = _titleLabel.center;
    viewCenter.y = self.height / 2.0f;
    _titleLabel.center = viewCenter;
    
    _seperatorLine.frame = CGRectMake(15.0f, self.height - 0.5f, self.width - 15.0f, 0.5f);
    
    _rightArrow.frame = CGRectMake(self.width - _rightArrow.currentBackgroundImage.size.width, 5.0f, _rightArrow.currentBackgroundImage.size.width, _rightArrow.currentBackgroundImage.size.height);
    viewCenter = _rightArrow.center;
    viewCenter.y = self.height / 2.0f;
    _rightArrow.center = viewCenter;
    
}


@end
